package org.cdivtc.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生基本信息表
 * </p>
 *
 * @author xiaogoudashuai
 * @since 2025-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Students implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学生唯一标识
     */
    @TableId(value = "student_id", type = IdType.AUTO)
    @ApiModelProperty(value = "学生ID", example = "1")
    private Long studentId;

    /**
     * 学生姓名
     */
    @TableField("name")
    private String name;

    /**
     * 性别
     */
    @TableField("gender")
    private String gender;

    /**
     * 登录账号
     */
    @TableField(value = "account")
    private String account;

    /**
     * 加密后的密码
     */
    @TableField("password")
    private String password;
    /**
     * 账号创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
    /**
     * 联系电话（允许为空）
     */
    @TableField("phone")
    private String phone;
    /**
     * 证书获取状态
     */
    @TableField("certification_status")
    private String certificationStatus;
}
